$(function () {
    var shopId = getQueryString("shopId");
    var shopInfoUrl = '/o2o/shopadmin/getshopmanagementInfo?shopId=' + shopId;
    $.getJSON(shopInfoUrl,function (data) {
        if(data.redirect){
            window.location.href = data.url;
        }else{
            if(data.shopID != undefined && data.shopId != null){
                shopId = data.shopId;
            }
            $('#shopInfo')
                .attr('href','/o2o/shopadmin/shopoperation?shopId='+shopId);
        }
    })
});